<?php
	require '../modelo/comentar.php';
	$obj = new comentar();
	$datos = $obj->all();
?>
<!DOCTYPE html>
<html lang='es'>
	<head>
		<title>Eliminar Registro</title>
		<meta charset='utf-8'>
		<link rel="stylesheet" type="text/css" href="css/delete.css">
	</head>
<body>
	
	<?php if(sizeof ($datos) >0): ?>
	<center>
	<table border='10'>
		<tr>
			<th>N° CLIENTE</th>
			<th>NOMBRE</th>
			<th>FECHA</th>
			<th>CORREO</th>
			<th>COMENTARIO</th>			
		</tr>
	<?php foreach ($datos as $row): ?>
		<tr>
			<td align="center">
				<?php echo $row ['id_cm']; ?>
			</td>
			<td>
				<?php echo $row ['nombre_cm']; ?>
			</td>

			<td>
				<?php echo $row ['fecha_cm']; ?>
			</td>

			<td>
				<?php echo $row ['correo_cm']; ?>
			</td>

			<td>
				<?php echo $row ['comentarios_cm']; ?>
			</td>
		</tr>

		<?php endforeach; ?>
		
	</table>
<?php endif; ?>
<form action='../controlador/validar_del.php' method='post' name='form'>
	<br>
	<input class="texto" type="text" name="id_cm">
	<input type='submit' name='Borrar' value='Borrar'>
</form>
</center>
</body>
</html>